package com.gxy.learn.design.model.behaviour.iterator;

/**
 * @description: 抽象迭代器
 * @author: gaoxueyong
 * @Date: 2022/11/8 21:31
 */
public interface StudentIterator {
    /**
     * 判断是否有下一个对象
     * @Author gaoxueyong
     * @Date 9:32 下午 2022/11/8
     * @Param []
     * @return boolean
     **/
    boolean hasNext();
    /**
     * 获取下一个对象
     * @Author gaoxueyong
     * @Date 9:32 下午 2022/11/8
     * @Param []
     * @return com.gxy.learn.design.model.behaviour.iterator.Student
     **/
    Student next();
}
